package com.bjpowernode.oa.bean;

import java.io.Serializable;

public class Dept implements Serializable {
    private int deptno;
    private String pname;
    private String loc;

    public Dept() {
    }

    public Dept(int deptno, String pname, String loc) {
        this.deptno = deptno;
        this.pname = pname;
        this.loc = loc;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptno=" + deptno +
                ", pname='" + pname + '\'' +
                ", loc='" + loc + '\'' +
                '}';
    }

    public int getDeptno() {
        return deptno;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public String getPname() {
        return pname;
    }

    public String getDname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }
}
